<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <link rel="shortcut icon" href="<!--{eval echo register_static('img/touch-icon-57x57.png');}-->">

    <title>粉粉管理系统</title>

    <!-- Bootstrap core CSS -->
    <link href="<!--{eval echo register_static('css/bootstrap.min.css');}-->" rel="stylesheet">
    <link href="<!--{eval echo register_static('css/bootstrap-reset.css');}-->" rel="stylesheet">

    <!--Animation css-->
    <link href="<!--{eval echo register_static('css/animate.css');}-->" rel="stylesheet">

    <!--Icon-fonts css-->
    <link href="<!--{eval echo register_static('assets/font-awesome/css/font-awesome.css');}-->" rel="stylesheet" />
    <link href="<!--{eval echo register_static('assets/ionicon/css/ionicons.min.css');}-->" rel="stylesheet" />

    <link href="<!--{eval echo register_static('assets/sweet-alert/sweet-alert.min.css');}-->" rel="stylesheet">

    <!-- Plugins css -->
    <link href="<!--{eval echo register_static('assets/modal-effect/css/component.css');}-->" rel="stylesheet">

    <!-- DataTables -->
    <link rel="stylesheet" href="<!--{eval echo register_static('assets/datatables/jquery.dataTables.min.css" rel="stylesheet');}-->" />

    <!-- Custom styles for this template -->
    <link href="<!--{eval echo register_static('css/style.css');}-->" rel="stylesheet">
    <link href="<!--{eval echo register_static('css/helper.css');}-->" rel="stylesheet">

    <!-- My styles for this template -->
    <link href="<!--{eval echo register_static('css/common.css');}-->" rel="stylesheet">

</head>

<body>

<!-- Aside Start-->
<!--{template admin_v2/leftside}-->
<!-- Aside Ends-->


<!--Main Content Start -->
<section class="content">

    <!-- Header -->
    <!--{template admin_v2/header}-->
    <!-- Header Ends -->


    <!-- Page Content Start -->
    <!-- ================== -->

    <div class="wraper container-fluid diarys">

        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">群组升级</h3>
                    </div>
                    <div class="panel-body">
                        <div class="row" style="margin-bottom: 10px">
                            <div class="col-md-5 col-sm-5 col-xs-5" id="addDiaryToHotReady">
                                <!-- Search -->
                                <div class="extrabottom">
                                    <form class="form-inline" role="form">
                                        <div class="form-group">
                                            <input type="text" class="form-control" placeholder="输入GID" name="gid" value="">
                                        </div>
                                        <div class="form-group">
                                            <select class="form-control myChoose" name="label" id="reasonType">
                                                <option value="no">群组类别(全部)</option>
                                                <option value="1"  $labelArr[1]>家族</option>
                                                <option value="2"  $labelArr[2]>学院</option>
                                            </select>
                                        </div>
                                        <label class="checkbox inline">
                                            <input type="checkbox" id="inlineCheckbox1" name='status' value='1' $statusArr[1] >【申请】
                                        </label>
                                        <label class="checkbox inline">
                                            <input type="checkbox" id="inlineCheckbox2" name='status' value='2' $statusArr[2]>【已通过】
                                        </label>
                                        <input type="hidden" name="ac" value="group_class" />
                                        <input type="hidden" name="op" value="groupList"/>
                                        <input type="submit" value="点击查找" class="btn btn-success"  id="search"/>
                                    </form>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-md-12 col-sm-12 col-xs-12">
                                <table id="datatable" class="table table-striped table-bordered">
                                    <thead>
                                    <tr>
                                        <th style="width: 5%;">GID</th>
                                        <th style="width: 20%;">群组名</th>
                                        <th style="width: 15%;">创建者</th>
                                        <th style="width: 5%;">类别</th>
                                        <th style="width: 5%;">群人数</th>
                                        <th style="width: 10%;">等级</th>
                                        <th style="width: 15%;">创建时间</th>
                                        <th style="width: 10%;">认证</th>
                                        <th style="width: 7%;">操作</th>
                                    </tr>
                                    </thead>

                                    <tbody>
                                    <!--{loop $list $value}-->
                                    <tr>
                                        <td><label class="label label-success">{$value[gid]}</label></td>
                                        <td>{$value[name]}</td>
                                        <td><a href="admin.php?ac=admin&do=accountOperation&uid={$value[uid]}" class="btn btn-info btn-xs m-b-5">{$value[creator][nickname]}</a></td>
                                        <td>
                                            <!--{if $value['category']==1}--><span class="label label-info">情感</span><!--{/if}-->
                                            <!--{if $value['category']==2}--><span class="label label-info">活动</span><!--{/if}-->
                                            <!--{if $value['category']==3}--><span class="label label-info">美食</span><!--{/if}-->
                                            <!--{if $value['category']==4}--><span class="label label-info">晒货</span><!--{/if}-->
                                            <!--{if $value['category']==5}--><span class="label label-info">健康</span> <!--{/if}-->
                                            <!--{if $value['category']==6}--><span class="label label-info">美妆</span><!--{/if}-->
                                            <!--{if $value['category']==7}--><span class="label label-info">星座 </span><!--{/if}-->
                                            <!--{if $value['category']==8}--><span class="label label-info">美文</span><!--{/if}-->
                                            <!--{if $value['category']==9}--><span class="label label-info">摄影</span><!--{/if}-->
                                            <!--{if $value['category']==10}--><span class="label label-info">搞笑 </span><!--{/if}-->
                                            <!--{if $value['category']==11}--><span class="label label-info">娱乐</span><!--{/if}-->
                                            <!--{if $value['category']==12}--><span class="label label-info">运动</span><!--{/if}-->
                                            <!--{if $value['category']==13}--><span class="label label-info">亲子</span><!--{/if}-->
                                            <!--{if $value['category']==14}--><span class="label label-info">萌宠</span><!--{/if}-->
                                            <!--{if $value['category']==15}--><span class="label label-info">数码</span><!--{/if}-->
                                            <!--{if $value['category']==16}--><span class="label label-info">旅途</span><!--{/if}-->
                                            <!--{if $value['category']==17}--><span class="label label-info">汽车</span><!--{/if}-->
                                            <!--{if $value['category']==18}--><span class="label label-info">随笔</span><!--{/if}-->
                                            <!--{if $value['category']==19}--><span class="label label-info">小说</span><!--{/if}-->
                                            <!--{if $value['category']==20}--><span class="label label-info">动漫</span><!--{/if}-->
                                            <!--{if $value['category']==21}--><span class="label label-info">校园</span><!--{/if}-->
                                        </td>
                                        <td><b>{$value[member_num]}</b></td>
                                        <td>
                                            LV_{$value[level]}
                                        </td>
                                        <td><!--{date('Y-m-d H:i:s',$value[time])}--></td>
                                        <td>
                                            <!--{if $value[attribute] == 1}-->
                                            <span class="btn btn-info btn-xs m-b-5">家族群</span>
                                            <!--{elseif $value[attribute] == 2}-->
                                            <span class="btn btn-info btn-xs m-b-5">学院群</span>
                                            <!--{elseif $value[attribute] == 101}-->
                                            <span class="btn btn-info btn-xs m-b-5">家族群申请中...</span>
                                            <!--{elseif $value[attribute] == 201}-->
                                            <span class="btn btn-info btn-xs m-b-5">学院群申请中...</span>
                                            <!--{else}-->
                                            <span class="btn btn-info btn-xs m-b-5">未申请</span>
                                            <!--{/if}-->
                                        </td>
                                        <td>
                                            <!--{if $value[attribute] == 101}-->
                                            <a href="admin.php?ac=manage_group&op=setChatGroupAttribute&gid={$value[gid]}&status=1" target="_blank">同意(家族)</a>
                                            <!--{elseif $value[attribute] == 201}-->
                                            <a href="admin.php?ac=manage_group&op=setChatGroupAttribute&gid={$value[gid]}&status=2" target="_blank">同意(学院)</a>
                                            <!--{elseif $value[attribute] == 1 || $value[attribute] == 2}-->
                                            <a href="admin.php?ac=manage_group&op=setChatGroupAttribute&gid={$value[gid]}&status=0" target="_blank">取消认证</a>
                                            <!--{else}-->
                                            <button type="button" class="btn btn-danger myStatusReject">不可操作</button>
                                            <!--{/if}-->
                                        </td>
                                    </tr>
                                    <!--{/loop}-->
                                    </tbody>
                                </table>
                                <!--{if $pageUrl}-->
                                <div class="row">
                                    <div class="col-md-12">
                                        <form action="admin.php" method="get">
                                            <div class="input-group m-t-10 col-md-2" style="margin: 0 auto">
                                                <input type="hidden" name="ac" value="group_class">
                                                <input type="hidden" name="op" value="groupList">
                                                <input type="hidden" name="label" value="{$status['label']}">
                                                <input type="hidden" name="status" value="{$status['status']}">
                                                <div id="spinner4">
                                                    <div class="input-group">
                                                        <div class="spinner-buttons input-group-btn">
                                                            <button type="button" class="btn spinner-down btn-pink">
                                                                <i class="fa fa-minus"></i>
                                                            </button>
                                                        </div>
                                                        <input type="text" name="page" class="spinner-input form-control" maxlength="4"  value="{$pageUrl['currentPage']}">
                                                        <div class="spinner-buttons input-group-btn">
                                                            <button type="button" class="btn spinner-up btn-purple">
                                                                <i class="fa fa-plus"></i>
                                                            </button>
                                                        </div>
                                                    </div>
                                                </div>
                                                <span class="input-group-btn"><button type="submit" class="btn btn-effect-ripple btn-primary">跳转</button></span>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                                <ul class="pager">
                                    <li>
                                        <a href="{$pageUrl['prev']}"> <i class="fa fa-angle-double-left"></i>上一页</a>
                                    </li>
                                    <li>
                                        <a href="{$pageUrl['first']}"> <i class="fa"></i>第一页</a>
                                    </li><li>
                                    <a href="javascript:;"> <i class="fa"></i>当前为{$pageUrl['currentPage']}页，共{$pageUrl['totalPage']}页</a>
                                </li>
                                    <li>
                                        <a href="{$pageUrl['next']}">下一页 <i class="fa fa-angle-double-right"></i> </a>
                                    </li>
                                </ul>
                                <!--{/if}-->
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

    </div>
    <!-- Page Content Ends -->
    <!-- ================== -->

    <div id="con-close-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">

    </div><!-- /.modal -->


    <!-- Footer Start -->
    <!--{template admin_v2/footer}-->
    <!-- Footer Ends -->



</section>
<!-- Main Content Ends -->


<!-- js placed at the end of the document so the pages load faster -->
<script src="<!--{eval echo register_static('js/jquery.js');}-->"></script>
<script src="<!--{eval echo register_static('js/bootstrap.min.js');}-->"></script>
<script src="<!--{eval echo register_static('js/pace.min.js');}-->"></script>
<script src="<!--{eval echo register_static('js/wow.min.js');}-->"></script>
<script src="<!--{eval echo register_static('js/jquery.nicescroll.js');}-->" type="text/javascript"></script>
<script type="text/javascript" src="<!--{eval echo register_static('assets/spinner/spinner.min.js');}-->"></script>
<script src="<!--{eval echo register_static('js/jquery.app.js');}-->"></script>
<script src="<!--{eval echo register_static('assets/sweet-alert/sweet-alert.min.js');}-->"></script>
<script src="<!--{eval echo register_static('assets/sweet-alert/sweet-alert.init.js');}-->"></script>

<script type="text/javascript">

    $('#spinner4').spinner({value:0, step: 1, min: 1, max: 200});

</script>
</body>
</html>
